import { openDialog } from '@/components';
import CreatePost from './view';

export const openCreatePage = () => {
  const close = openDialog({
    type: 'bottom',
    statusBarStyle: 'dark',
    content: (sizes) => (
      <CreatePost
        {...sizes}
        onClose={() => close()}
      />
    )
  });
}